package model;

import java.util.Set;

public class Category {

	private long id;
	
	private String name;
	
	private Category parentCategory;
	
	private Set childrenCategory;
	
	private Set trade;
	
	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Category getParentCategory() {
		return parentCategory;
	}

	public void setParentCategory(Category parentCategory) {
		this.parentCategory = parentCategory;
	}

	public Set getChildrenCategory() {
		return childrenCategory;
	}

	public void setChildrenCategory(Set childrenCategory) {
		this.childrenCategory = childrenCategory;
	}

	public Set getTrade() {
		return trade;
	}

	public void setTrade(Set trade) {
		this.trade = trade;
	}

	public Category(){
		
	}
	
	public Category(String name){
		this.name = name;
	}
	
	public Category(String name, Category parentCategory, Set childrenCategory){
		this.name = name;
		this.parentCategory = parentCategory;
		this.childrenCategory = childrenCategory;
	}
}
